package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SavepointLevelIndication implements RoutineCharacteristic {

    private int beginIndex;
    private int endIndex;
    private boolean newSavepointLevel;
    private boolean oldSavepointLevel;

    public SavepointLevelIndication(int beginIndex,
                                    int endIndex,
                                    boolean newSavepointLevel,
                                    boolean oldSavepointLevel) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.newSavepointLevel = newSavepointLevel;
        this.oldSavepointLevel = oldSavepointLevel;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public boolean isNewSavepointLevel() {
        return newSavepointLevel;
    }

    public boolean isOldSavepointLevel() {
        return oldSavepointLevel;
    }

}
